calculating nets of shapes